package com.lanou3g.ptp.taskstudent.mapper;

import com.lanou3g.ptp.entity.TaskStudent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface TaskStudentMapper {
    List<TaskStudent> findAll();

    void inserts (ArrayList<TaskStudent> taskStudents);

    TaskStudent findById(Long id);

    void insert(TaskStudent taskStudent);

    void update(@Param("id") Long id,@Param("t") TaskStudent taskStudent);

    void delete(Long id);

    void deletes(Long[] ids);

    void deleteByTaskId(Long taskId);

    void deletesByTaskIds(Long[] ids);

    ArrayList<Long> findByTaskId(Long id);

    List<TaskStudent> findAllByStudentId(Long studentId);
}
